/**
 * Created by MJiao on 15/8/15.
 */


/**
 * 验证是否邮箱
 * @param $email
 * @returns {boolean}
 */
function validateEmail($email) {
    var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/;
    return emailReg.test( $email );
}